package com.yujistu.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.yujistu.R;
import com.yujistu.activity.appointactivity.puroseactivity.PurposeWeightActivity;
import com.yujistu.activity.appointactivity.puroseactivity.ShowExercisePackageActivity;
import com.yujistu.adapter.BaseListAdapter;

/**
 * Created by Win on 2015/11/6.
 */
public class PurposeFragment extends BaseFragment {


    public View mContentView;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        mContentView = inflater.inflate(R.layout.fragment_purpose, container, false);

        initViews();
        return mContentView;
    }

    private void initViews() {
       mContentView.findViewById(R.id.purpose_entranceLLY).setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               startActivity(new Intent(getActivity(), ShowExercisePackageActivity.class));
           }
       });
        mContentView.findViewById(R.id.purpose_reduce_weightLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), PurposeWeightActivity.class));
            }
        });
        mContentView.findViewById(R.id.shoulder_neck_careLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.spine_maintenanceLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.flexibleLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.insomniaLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.physiologyLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.diligentLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.relaxLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.sel_cultivationLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.anxiety_headacheLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.depressionLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.physiotherapyLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mContentView.findViewById(R.id.spregnancyLLY).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }

    @Override
    public BaseListAdapter getListAdapter() {
        return null;
    }

}
